<%-- 
    Document   : registroTarjetaMadre
    Created on : 25-abr-2013, 23:40:25
    Author     : Eric
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<%@page import="src.j2ee.compumake.builders.BuilderMenu" %>
<%@page import="src.j2ee.compumake.builders.BuilderTipoVideo" %>
<%@page import="src.j2ee.compumake.builders.BuilderArquitectura" %>
<%@page import="src.j2ee.compumake.builders.BuilderTipoMemoria" %>
<%@page import="src.j2ee.compumake.builders.BuilderVelocidadMemoria" %>
<%@page import="src.j2ee.compumake.builders.BuilderSocket" %>
<%@page import="src.j2ee.compumake.builders.BuilderMarca" %>
<%@page import="src.j2ee.compumake.builders.BuilderSucursal" %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Registro Tarjeta Madre</title>
        
        <link rel="stylesheet" href="CSS/default/default.css" type="text/css" media="screen" />
        <link rel="stylesheet" href="CSS/nivo-slider.css" type="text/css" media="screen" />
        <link rel="stylesheet" href="CSS/login.css" type="text/css" media="screen" />
        <link rel="stylesheet" href="CSS/compumake.css" type="text/css" media="screen" />
        
        <script type="text/javascript" src="js/jquery-1.8.2.js"></script>
        <script type="text/javascript" src="js/jquery.nivo.slider.js"></script>
        <script type="text/javascript" src="js/login.js"></script>
        <script type="text/javascript" src="js/validacionesDeFormularios.js"></script>
        <script type="text/javascript">
        $(window).load(function() {
            $('#slider').nivoSlider();
        });
        </script>
        
    </head>
    <body>
        
        <div class="encabezado">
            
        </div>
        
        <div class="banner">
            <div id="foto">
                <div id="wrapper">
                    <div class="slider-wrapper theme-default">
                        <div id="slider" class="nivoSlider">
                            <img src="CSS/IMAGES/monitor.jpg" data-thumb="IMAGES/monitor.jpg" alt="" data-transition="slideInRight" />
                            <img src="CSS/IMAGES/teclado.jpg" data-thumb="IMAGES/teclado.jpg" alt="" data-transition="slideInLeft" />
                            <img src="CSS/IMAGES/discoDuro.jpg" data-thumb="IMAGES/discoDuro.jpg" alt="" data-transition="slideInRight" />
                            <img src="CSS/IMAGES/cpu.jpg" data-thumb="IMAGES/cpu.jpg" alt="" data-transition="slideInLeft" />
                            <img src="CSS/IMAGES/ram.jpg" data-thumb="IMAGES/ram.jpg" alt="" data-transition="slideInRight" />
                            <img src="CSS/IMAGES/procesador.jpg" data-thumb="IMAGES/procesador.jpg" alt="" data-transition="slideInLeft" />
                        </div>
                    </div>
                </div>
            </div>
            <div id="texto_banner">
                <h1 class="titulo_banner">COMPU-MAKE</h1>
                <p class="texto_banner">Registro de Tajetas Madre</p>
            </div>
        </div>
        
        <!-- Menú -->
        <%
            String menuPrincipal;
            int logueado;
            if (session.getAttribute("banderaTipo") != null) {
                    logueado = Integer.parseInt(session.getAttribute("banderaTipo")
                                    .toString());
                    menuPrincipal = BuilderMenu.obtenerMenuPrincipal(logueado);
            } else {
                    menuPrincipal = BuilderMenu.obtenerMenuPrincipal(0);
            }
        %>
        <%=menuPrincipal%>
        <!-- Menú end -->
        
        <div class="contenido">
            
            <div class="titulo_contenido">
                <p>Formulario de registro</p>
            </div>
            
            <div class="subtitulo_contenido">
                <p>Registro de una nueva Tarjeta Madre</p>
            </div>
            
            <div class="form_usuario">
                <form name="registroTarjetaMadre" action="RegistroTarjetaMadre" enctype="multipart/form-data" method="post" onsubmit="return registroTarjetaMadreValido()">
                    <table class="tabla_datos_tarjeta_madre_inf">
                        <caption>Datos Producto</caption>
                        <tr><th><label for="nombre">Nombre: </label></th><td><input type="text" id="nombre" name="nombre" onblur="toggleColor(this)" onfocus="toggleColor(this)"></td></tr>
                        <tr><th><label for="existencia">Cantidad en existencia: </label></th><td><input type="text" id="existencia" name="existencia" onblur="toggleColor(this)" onfocus="toggleColor(this)"></td></tr>
                        <tr><th><label for="precio">Precio: </label></th><td><input type="text" id="precio" name="precio" onblur="toggleColor(this)" onfocus="toggleColor(this)"></td></tr>
                        <tr><th><label for="marca">Marca: </label></th><% String comboMarca = BuilderMarca.obtenerComboMarca();%><%=comboMarca%></tr>                        
                    </table>
                    <div>&nbsp;</div>
                    <div>&nbsp;</div>
                    <div>&nbsp;</div>
                    <table class="tabla_imagen">
                        <caption>Imagen del producto</caption>
                        <tr><th><label for="imagen">Imagen: </label></th><td><input type="file" name="imagen" id="imagen" /></td></tr>                      
                    </table>
                    <div>&nbsp;</div>
                    <div>&nbsp;</div>
                    <div>&nbsp;</div>
                    <table class="tabla_datos_tarjeta_madre">
                        <caption>Puertos Tarjeta Madre</caption>
                        <tr><th><label for="ides">Cantidad de puertos IDE: </label></th><td><input type="text" id="ides" name="ides" onblur="toggleColor(this)" onfocus="toggleColor(this)"></td></tr>
                        <tr><th><label for="satas">Cantidad de puertos SATA: </label></th><td><input type="text" id="satas" name="satas" onblur="toggleColor(this)" onfocus="toggleColor(this)"></td></tr>
                        <tr><th><label for="ps2">Cantidad de puertos PS/2: </label></th><td><input type="text" id="ps2" name="ps2" onblur="toggleColor(this)" onfocus="toggleColor(this)"></td></tr>
                        <tr><th><label for="usbs">Cantidad de puertos USB: </label></th><td><input type="text" id="usbs" name="usbs" onblur="toggleColor(this)" onfocus="toggleColor(this)"></td></tr>
                        <tr><th><label for="slotsAGP">Cantidad de slots AGP: </label></th><td><input type="text" id="slotsAGP" name="slotsAGP" onblur="toggleColor(this)" onfocus="toggleColor(this)"></td></tr>
                        <tr><th><label for="slotsPCI">Cantidad de slots PCI: </label></th><td><input type="text" id="slotsPCI" name="slotsPCI" onblur="toggleColor(this)" onfocus="toggleColor(this)"></td></tr>
                        <tr><th><label for="numSlotsMemoria">Cantidad de slots para Memoria: </label></th><td><input type="numSlotsMemoria" id="numSlotsMemoria" name="numSlotsMemoria" onblur="toggleColor(this)" onfocus="toggleColor(this)"></td></tr>
                    </table>
                    <div>&nbsp;</div>
                    <div>&nbsp;</div>
                    <div>&nbsp;</div>
                    <table class="tabla_datos_video">
                        <caption>Datos de Tipo de Video</caption>
                        <tr><th><label for="tipoVideo">Tipo de Video: </label></th><% String comboTipoVideo = BuilderTipoVideo.obtenerComboTipoVideo();%><%=comboTipoVideo%></tr>                        
                    </table>
                    <div>&nbsp;</div>
                    <div>&nbsp;</div>
                    <div>&nbsp;</div>
                    <table class="tabla_datos_arqui">
                        <caption>Datos la Arquitectura</caption>
                        <tr><th><label for="arquitectura">Tipo de Arquitectura: </label></th><% String comboArquitectura = BuilderArquitectura.obtenerComboArquitectura();%><%=comboArquitectura%></tr>                        
                    </table>
                    <div>&nbsp;</div>
                    <div>&nbsp;</div>
                    <div>&nbsp;</div>
                    <table class="tabla_datos_memoria">
                        <caption>Datos del Tipo de Memoria</caption>
                        <tr><th><label for="tipoMemoria">Tipo de Memoria: </label></th><% String comboTipoMemoria = BuilderTipoMemoria.obtenerComboTipoMemoria();%><%=comboTipoMemoria%></tr>                        
                        <tr><th><label for="velocidadMemoria">Velocidad de Memoria: </label></th><% String comboVelocidadMemoria = BuilderVelocidadMemoria.obtenerComboVelocidadMemoria();%><%=comboVelocidadMemoria%></tr>                        
                    </table>
                    <div>&nbsp;</div>
                    <div>&nbsp;</div>
                    <div>&nbsp;</div>
                    <table class="tabla_datos_socket">
                        <caption>Datos del Socket</caption>
                        <tr><th><label for="socket">Tipo de Socket: </label></th><% String comboSocket = BuilderSocket.obtenerComboSocket();%><%=comboSocket%></tr>                        
                    </table>
                    <div>&nbsp;</div>
                    <div>&nbsp;</div>
                    <div>&nbsp;</div>
                    <table class="tabla_datos_tarjeta_madre">
                        <caption>Sucursal</caption>
                        <tr><th><label for="sucursal">Sucursal que pertenece: </label></th><% String comboSucursal = BuilderSucursal.obtenerComboSucursal();%><%=comboSucursal%></tr>                        
                    </table>
                    <div>&nbsp;</div>
                    <div>&nbsp;</div>
                    <div>&nbsp;</div>
                    <table class="tabla_datos_usuario">
                        <tr><td><input type="submit" value="Enviar" ></td><td><input type="reset"></td></tr>
                    </table>
                </form>
            </div>
            
        </div>
        
        <div class="pie">
            
        </div>
        
    </body>
</html>
